import {AnyParams} from "@/common/httptypes";


export interface RouterLoader {
    loaderMetadata(): Promise<RouterMetadata> ;

}

export type RouteData = {
    link: RouteElement[],
    layout: RouteElement[],
}
export type RouteElement = {
    name: string;
    icon?: string;
    path: string;
    identity?: boolean;
    element?: string;
    layout?: boolean;
    children?: RouteElement[]
}

export type RouterMetadata = {
    enable: boolean;
    buttons: string[]
    list: RouteElement[];
    mapping: AnyParams<RouteElement>;
    layout: RouteElement[];
}


